package com.bstek.uflo.designer.model;

import java.util.ArrayList;
import java.util.List;

import com.bstek.dorado.annotation.PropertyDef;

public class FormElement {

	@PropertyDef(label = "名称")
	private String name;
	@PropertyDef(label = "标题")
	private String caption;
	@PropertyDef(label = "数据类型")
	private String dataType = "String";
	@PropertyDef(label = "编辑器类型")
	private String editorType = "TextEditor";
	@PropertyDef(label = "访问类型")
	private String authority = "Read";
	@PropertyDef(label = "是否必填")
	private boolean required = false;
	@PropertyDef(label = "默认值")
	private String defaultValue;
	private List<Mapping> mappings = new ArrayList<Mapping>();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public String getEditorType() {
		return editorType;
	}

	public void setEditorType(String editorType) {
		this.editorType = editorType;
	}

	public String getAuthority() {
		return authority;
	}

	public void setAuthority(String authority) {
		this.authority = authority;
	}

	public boolean isRequired() {
		return required;
	}

	public void setRequired(boolean required) {
		this.required = required;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public List<Mapping> getMappings() {
		return mappings;
	}

	public void setMappings(List<Mapping> mappings) {
		this.mappings = mappings;
	}
}
